import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import fire from '@dfeidao/atom-web/msg/fire';

import get from '@dfeidao/atom-web/global/get';
import hide from '@dfeidao/atom-web/ui/hide';

export default async function a003(fd: IFeidaoAiBrowserComponent, e: Event) {
	// todo
	const users = get('users');
	const staff_no = users.staff_no;
	const staff_name = users.staff_name;
	const n = e.currentTarget as HTMLDivElement;
	const no = n.getAttribute('data-no');
	hide(fd.data.node);
	fire('zj-000003', 'a001', users, no, staff_no, staff_name);
}
